package com.example.orderfoodsystem22201310liuziming.repository;

import com.example.orderfoodsystem22201310liuziming.entity.foodtable;
import com.example.orderfoodsystem22201310liuziming.entity.shoppingcart;
import org.springframework.data.repository.CrudRepository;

import javax.transaction.Transactional;
import java.util.List;

public interface TableRepository extends CrudRepository<foodtable,Integer>{
    @Transactional
    void deleteByTablename(String Name);
    foodtable findByTablename(String Name);
    List<foodtable> findAllByStateIn(List  <Integer> list );
}
